home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / scripts / environmentalfx.shader < prev    next >
Encoding:
Text File  |  2002-10-21  |  3.1 KB  |  165 lines

  1. textures/misc_outside/blowingleaves
  2. {
  3.     qer_editorimage textures/misc_outside/leaves_blown.tga
  4.     surfaceparm nonsolid
  5.     surfaceparm trans
  6.     cull none
  7.     deformvertexes wave 30 sin 0 10 0 .2
  8.     nopicmip
  9.     {
  10.         map textures/misc_outside/leaves_blown.tga
  11.         tcMod scale 2 2
  12.         tcMod scroll 0 .25
  13.         depthWrite
  14.         alphaFunc GE128
  15.     nextbundle
  16.         map $lightmap
  17.     }
  18. }
  19.  
  20. // Boon: Removed this as it is also defined in german.shader
  21. //textures/German/nazibanner1
  22. //{
  23. //    qer_editorimage textures/german/nazbannr1.tga
  24. //    surfaceparm nonsolid
  25. //    surfaceparm trans
  26. //    cull none
  27. //    deformvertexes wave 30 sin 0 10 0 .2
  28. //    nopicmip
  29. //    {
  30. //        map textures/German/nazbannr1.tga
  31. //        blendFunc blend
  32. //        alphaFunc GE128
  33. //        depthWrite
  34. //        rgbGen identity
  35. //    }
  36. //    {
  37. //        map $lightmap
  38. //        rgbGen Identity
  39. //        blendFunc GL_DST_COLOR GL_ZERO
  40. //        depthFunc equal
  41. //    }
  42. //}
  43.  
  44. //textures/central_europe_winter/snowfield1
  45. //{
  46. //    qer_editorimage textures/central_europe_winter/snowfield.tga
  47. //    {
  48. //        map textures/central_europe_winter/snowfx.tga
  49. //             tcMod parallax -.001 -.001
  50. //    }
  51. //    {
  52. //        map textures/central_europe_winter/snowfield.tga
  53. //        blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
  54. //        rgbGen identity
  55. //    }
  56. //    {
  57. //        map $lightmap
  58. //        rgbGen Identity
  59. //        blendFunc GL_DST_COLOR GL_ZERO
  60. //    }
  61. //}
  62.  
  63. textures/central_europe_winter/jhpjwinterwall1_sparkley
  64. {
  65.     qer_editorimage textures/central_europe_winter/jhpj_winterwall1sprk.tga
  66.     nopicmip
  67.     {
  68.         map textures/central_europe_winter/snowfx3.tga
  69.         tcMod parallax .002 .002
  70.         tcMod scale 15 15
  71.     nextbundle
  72.         map textures/central_europe_winter/snowfx2.tga
  73.         tcMod scale 2 2
  74.     }
  75.     {
  76.         map $whiteimage
  77.         rgbGen constant .2 .2 .2
  78.         blendFunc add
  79.     }
  80.     {
  81.         // This stage lightens up the non-sparkly bits
  82.         map textures/central_europe_winter/jhpj_winterwall1sprk.tga
  83. //        rgbGen const .0625 .0954 .1616
  84.         blendfunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
  85. //        tcMod scale .4 .5
  86.     nextbundle
  87.         map $lightmap
  88.     }
  89. }
  90.  
  91.  
  92. ripple
  93. {
  94.     cull none
  95.     spriteGen oriented
  96.     {
  97.         map textures/sprites/ripple.tga
  98.         blendFunc GL_ONE GL_ONE
  99. //        alphaGen vertex
  100.         rgbGen vertex
  101.     }
  102. }
  103.  
  104. textures/windowflash
  105. {
  106.     nopicmip
  107.     qer_editorimage textures/mohtest/windowflash.tga
  108.     qer_keyword mackey
  109.     surfaceparm nonsolid
  110.     surfaceParm nolightmap
  111.  
  112.     polygonoffset
  113.     {
  114.         map textures/mohtest/windowflash.tga
  115.         rgbgen const 0.7 0.7 0.7
  116.  
  117. //        rgbgen const 0.82 0.82 0.82
  118.         //alphagen const 0.5
  119.         blendfunc add
  120.     }
  121. }
  122.  
  123. textures/windowflash2
  124. {
  125.     nopicmip
  126.     qer_editorimage textures/mohtest/windowflash2.tga
  127.     qer_keyword mackey
  128.     surfaceparm nonsolid
  129.     surfaceParm nolightmap
  130.  
  131.     polygonoffset
  132.     {
  133.         map textures/mohtest/windowflash2.tga
  134.         rgbgen const 0.7 0.7 0.7
  135.  
  136. //        rgbgen const 0.82 0.82 0.82
  137.         //alphagen const 0.5
  138.         blendfunc add
  139.     }
  140. }
  141.  
  142.  
  143. textures/mohtest/window4masked2
  144. {
  145.     qer_editorimage textures/mohtest/window4msk2.tga
  146.     qer_keyword mackey
  147.     qer_keyword glass
  148.     qer_keyword masked
  149.     qer_keyword window
  150.     surfaceparm nomarks
  151.     surfaceparm wood
  152.     surfaceparm fence
  153.     surfaceparm alphashadow
  154.     surfaceparm trans
  155.     cull none
  156.     nopicmip
  157.     {
  158.         map textures/mohtest/window4msk2.tga
  159.         alphaFunc GE128
  160.         depthWrite
  161.     nextbundle
  162.         map $lightmap
  163.     }
  164. }
  165.